package com.lihegang.example.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *  错误页重写
 * Created by dong-er on 2018/7/8.
 */
@Controller
@RequestMapping(value="error")
public class BaseErrorController{
// public class BaseErrorController implements ErrorController {

    private static final Logger logger = LoggerFactory.getLogger(BaseErrorController.class);

/*    @Override
    public String getErrorPath(){
        logger.info("出错了！进入自定义错误控制器");
        return "error/error";
    }*/

 /*   @RequestMapping
    public String error(){
        return getErrorPath();
    }*/

}
